Some cleanup and code duplication reductions in ConcurrentArrayList
Shift around where the locks in PriorityScheduler happen shortly