Make RedisQueue::migrateExpiredJobs atomic (fixes #4912)