Reorder #includes in jscustomallocator.h to make SpiderMonkey's linter happy.
Surround mutex.h in an include guard.
Disable PartitionAlloc when MOZ_MEMORY is not defined.