What makes you think it is the door lock? Have you actually tested the lock switch or are you just guessing? If you by pass it and wire it to stay on lock how are you going to open the door? Door lock switches are not that expensive. If it is definitely faulty replace it. No service person with any scruples would tell somebody how to by pass a safety switch put there to prevent injury.
Lincoln Appliance NZ, May 2012