nbd: switch from g_slice allocator to malloc