Avoiding full namespace scan on GetFeature request, GEOS-6597.

Backport of #671.