I don't think a lock will prevent a door warping, if the door is so inclined, it will warp. This may result in the lock becoming very stiff as the bolts move out of allignment, or with more significant warping, it may even become impossible to engage the lock.
Leo