Keep trying with the bolts, they will eventually seat into place.

As for the door lock issue, keep trying to lock and unlock the door while banging on the door near the locking mechanism, just keep hitting it repetitively and it should free it up allowing you to open the door.