Controlling mechanically-operated bolts by electro-magnetically-operated detents {by locking the handle, spindle, follower or the like}