Fixed lock mode for api lower than 19