Improve scheduler throughput by retrieving and removing atomically