Make 'closed' status in hash join atomic to prevent multiple concurrent closing.
Fix concurrent memory release in HashJoin cancel case.
Minor formattings.