MySQL 5.7 Release Notes
The Performance Schema exposes lock information through these tables:
metadata_locks
: Metadata locks held and requestedtable_handles
: Table locks held and requested
The following sections describe these tables in more detail.