HER-2065 - in activateInactiveQueue() close synchronized block earlier, and move updateHighestWaiting() up to keep it inside the block; now the call to deactivateQueue() is not in the synchronized block, so the deadlock should be avoided (fix suggested by kenji)
Merge pull request #61 from nlevitt/her-2065

HER-2065 synchronize on inactiveQueuesByPrecedence inside of synchronize...