I'm running into this same issue now. It affects Lazarus, since in Lazarus 2.2.0, there are 3 instances of clocale:
➜ lazarus-lazarus_2_2_0 grep -nirI "clocale" .
./components/datetimectrls/datetimepicker.pas:46: { clocale, // needed to initialize default locale settings on Linux. }
./components/lazreport/source/lr_class.pas:20:{ CLocale, }
./ide/lazarus.pp:54: { clocale, }
I hacked around it by just commenting them out for now.