Fixed bug in maintenance queue causing worker thread count to drop to 1 over time