Improve check for pg_stat_statements extension

Note that this will still cause the queries that need
pgss to fail if it's installed in a schema that's not
in the search path, but this is unlikely and can be
addressed later.