Synchronize mailimap deletion against async operations