Need Appliance Repair Help? Ask a Technician for Answers ASAP
It sounds like one of the switches on your door latch is beginning to fail and is being affected by the heat from the oven. This will cause the switch to trigger when it's going bad and then the oven will either think the door is locked or will lock the door and won't correct itself until you run self clean or let the oven cool down. Either way, the door latch itself would need to be replaced when one of the switches on the latch is beginning to fail.
We are on the honor system here. Please remember to rate my service by selecting a star at the top of the screen before you leave today. If you need anything else, just let me know. You can continue asking follow-up questions at no additional charge after rating my service if you still need assistance.