Fix some concurrency exceptions related to the ACK queue.