Fix runtime issues related to thread_locale
__cxa_thread_atexit which is needed when building c++11 program using
thread_locale is only defined on FreeBSD 11-STABLE and 12-CURRENT
Backout the change in libreoffice which happened during the 5.2 dev phase adding
thread_locale
PR: 214473
Reported by: Dušan Vejnovič <freebsd@dussan.org>
Tested by: Dušan Vejnovič <freebsd@dussan.org>