Fixed flag arguments calling msig_get_instance_with_local_id(), leaning up TODOs.
Revert to freeing signals first in mdev_free, but make sure not to reference freed signal when freeing connections.