Made cross_thread_mutex recursive to avoid deadlock issue in perfmon collection.