vmem: add the malloc_rwlock_t type
vmem: change type of pool->arenas_lock to malloc_rwlock_t
vmem: fix race condition in je_mallocx()

Ref: pmem/issues#15