Controlling mechanically-operated bolts by electro-magnetically-operated detents {by disconnecting the handle}