Better locking mechanism, empty buffers while pausing