Add ScopedMutex to automatically lock/unlock a whole scope
Protect access to global g_proxy_allocators_head