buffer: synchronizes @queue.delete_if