Fixed Tunable deadlock problem for TaskMonitor.