Rework thread-safety of custom metrics and dimensions for WinPhone compat.