vlib: allocating buffers on thread-x and freeing them on thread-y causes