Issue #2582655 by John Morahan, Dave Reid: Fixed issues with SQLite by changing path_pathauto_is_alias_reserved() to use simpler queries.