postgis: optionally disable postgis raster support

Closes #28104.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>