Ensure cleanup task is not executed multiple times in parallel