comprising safety devices avoiding locking until removal of the key