Fixed a race condition in Jalloc.