giscanner: fix --no-libtool on macOS

Currently g-ir-scanner fails on macOS when invoked in --no-libtool mode
if the library it links to has not been installed into its destination
(which is likely to be the case). In libtool mode this issue does not
occur as DYLD_LIBRARY_PATH will get set by libtool in an appropriate
manner. This patch ensures DYLD_LIBRARY_PATH will get set.

This patch is also essential for meson and cmake to generate
gobject-introspection bindings.

More information can be found e.g. at,
and the github repo that was produced subsequently at
1 job for macos-no-libtool-fix in 12 minutes and 59 seconds (queued for 2 seconds)
Status Job ID Name Coverage
passed #13885