wayland/shm: fix leak in buffer pool

Rename it to reinit and check if parts of the pool are already allocated.