Fixed lock requests permission check.