Fix AntiDeadlockThreadPool to check for deadlock on every task submit