locking the bolt by an electromagnet in the striker