kernel: Make vmem allocator thread safe

Signed-off-by: Pawel Dziepak <pdziepak@quarnos.org>