Added external locking when popup forms are shown to the user.