Implement MockRemoteTask.getNodeId()
Fix deadlock

Enabling node-scheduler.multiple-tasks-per-node-enabled could cause
tasks to get "lost"
Fix effective predicate extraction of UNION ALL