WL#9856: MySQL GCS: Instrument locking structures in GCS/XCom

Affects: Server-8.0   —   Status: Complete

Executive Summary
=================

This worklog will instrument mutex and condition synchronization objects
on GCS and will expose them automatically in P_S tables metrics, using
the Server's Performance Schema Interface to instrument the aforementioned
synchronization objects as well as declaring and registering the keys of
the instrumented mutex and condition objects.

Since XCom is currently single threaded, this worklog will not affect it.


User Stories
============

-As a MySQL DBA, I want to monitor the mutex and condition synchronization
objects of GCS, so that I am able to determine if there are any concurrency
related issues.

-As a MySQL dev, I want to have mutex and condition synchronization objects
instrumentation in GCS, so I can determine if there are any abnormal wait
events like bottlenecks or deadlocks.