MOSFET not switching solenoid lock
One thing that jumps out at me, there's a chance your door lock is either rusty, or isn't broken in. Put some 3 in 1 or low viscosity synthetic lubricant on it and then actuate it by hand a couple times.
Once the lock is moving freely by hand. Then feel your solenoid actuate. Is the power of the solenoid enough to match the force required to engage the door lock?
If yes. Make sure your the lock bolt is able to freely traverse and doesn't hit the jamb plate on your door.
If no... It may work if you pulse the solenoid repeatedly.
Lastly, solenoids in most applications actuate with the same force regardless of polarity. However, some have &quot;favorite&quot; directions. If it has a ferrous casing, mount, return spring, etc. it may slightly change the excursion profile.