vmem: fix segfault in je_malloc() in multi-threaded applications

Due to the race condition in `malloc_init_base_pool()`, the `base_pool` (aka `pool[0]`) may be used when not initialized yet.
The problem is observed only for native `je_malloc()` - `vmem_malloc()` and `je_pool_malloc()` are not affected.