gbacktrace: Handle case of strerror_r returning an int value
As it's the case in FreeBSD and Mac OS X.
Pipeline with fixed macos / freebsd jobs: https://gitlab.gnome.org/GNOME/glib/-/pipelines/415789 (I forgot I had to make the MR from a GNOME/glib branch).