ENG-4806: Clean snapshot buffer pool after targets are terminated.

Has to wait until all data targets are terminated before cleaning the buffer
pool, otherwise some buffers could still be in use by the data targets.