Bug 6745 Improve compression queue locking and handle InterruptedException