Use mutex when duplicating metrics Hash. Fixes #60