Add a sanity check for local modifications when performing a release build.

This can be overridden by setting PL_ALLOW_LOCAL_MODS=1 in the
environment prior to executing xcodebuild.

Issue: PLCR-508