I’m not a carpenter, but as a mechanic, if the hinge pin is doing that AND the deadbolt has a problem, I would expect a third problem. Maybe the door frame isn’t square, or since it is the bottom hinge pin, maybe a threshold issue. The pin shouldn’t be migrating, and if it did, the deadbolt shouldn’t care. There should be three hinges on an entry door. Is the door warped?
Idk why but I thought of this