Controlling mechanically-operated bolts by electro-magnetically-operated detents {locking the bolt by an electromagnet in the striker}