Electromagnetic guard locking devices