Ticket #1935: Incorrect lock files check when hostname contains wide characters.