AI-684 better result code handling from GET_LOCK query