Make better use of the unregister_server function. Straighten out uses of the register_lock. Add debug output when unregistering was successful.
Make better use of the unregister_server function. Straighten out uses of the register_lock. Add debug output when unregistering was successful.

BuildSeash/affix-repo,SeattleTestbed/affix,BuildSeash/affix