Related fdo#79714 OSX-crash opening query or table in embedded Firebird ODB

See https://bugs.freedesktop.org/attachment.cgi?id=100839 and other comments

Cherry-picked from 0acd0ed3a58698a34e11dd82f3368a983f8530df

Change-Id: I1187b171caf54997f5e8850ade4a3fb35ad9ec29
Reviewed-on: https://gerrit.libreoffice.org/9741
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>