Landlords are expected to have some gumption. Getting their own doors open is their problem, not the Sheriff's.
You said the Sheriff locked the door; therefore, he had the key. How did the Sheriff get the key? The deadbeat tenant happily handed it over?