Ticket 49029 - Internal logging thread data needs to allocate int pointers
Bug Description:
The original version of the fix incorrectly used stack pointers
to update the thread data. These pointers would go out of scope
and could cause a crash when updated.
Fix Description:
Allocate the integer pointers at initalization time for each
worker thread including main() thread. Also cleaned up other
areas of this code/feature.
Passed ASAN tests.
https://pagure.io/389-ds-base/issue/49029
Reviewed by: vashirov & lkrispen(Thanks!!)