Another option I've had excellent success with is to remove the inside plate for the lock and spray white lithium grease on the interior of the lock - the areas that move back and forth. This has made every door I've had a problem with work perfectly...
Your mileage may vary