Fix hang in coordinator

Tasks were only being removed from the NodeTaskMap when GC ran. This
caused queries to run slower and slower, as finished tasks piled up.