Fixed #23901 -- Unable to load the SpatiaLite library extension "/usr/local/lib/libspatialite.dylib"

This is Workaround for libspatialite 4.2.0 package on Homebrew, it requires mod_spatialite.dylib, if it exists.

- ticket link: https://code.djangoproject.com/ticket/23901