2 thing try to check.
When door close, see if the lock touch to the edge of the strike plate.
Temperature plays a role in wood expand and contraction. Temperature change might twist or expand the certain area of your door. This cause the lock can't be engage if it normal position is already at the strike plate edge. (No gap)
Why My Door Can't Lock?, come in solve this mystery