Fixing mutex metric issues

Sidekick: @christynicol 

The MySQL mutex metrics were not being logged because of a bug in writing over MetricMeta objects in a HashMap. Added unit test for mutex metrics.