is just a “model” id. So those two things are not the same.
You should check for the closest object around you in a loop with the exact model id (1557126584) and then you should use the local id of the object to freeze it.
Also, you might want to rethink the locking code. The door could be angled when the player locks the door and it would stay like that until it is unlocked. You need to check if the door is closed (in it’s primary position).