I didn't really change anything but this seems to resolve the race condition in the TransactionInitPriorityQueue...