Had a similar problem. The rack had snapped in two so the key didn't engage the part of it still attached to the bolt.
Solution (after reading the tips above): insert the key to free the bolt, then gradually slide the bolt back into the door by pushing it with a screwdriver through the crack...