Move sorting of render keys to RenderContext
Check for deadlocks in mutex
Make HeapAllocator thread-safe
Do not allow instantiation of HeapAllocator outside Memory.cpp