SSP-2969 Clean up MAP dialogs before exiting tool

Affects three dialogs. Here they are, with other related behavior
changes:

  1) Course details - Can only have one open at a time, and addressed
     a requisite loading race condition

  2) Course edit - Can only have one open at a time *per term*

  3) Term notes