This is not burglary because burglary is the breaking and entering of the dwelling house with the intent to commit a felony.There was no intent to commit a felony. Entering to unlock a door to retrieve your clothes after accidentally locking yourself out is not a felony.