Added thread-safe macroses according to perlguts

HI thre. Recently set up apache with worker mpm and it's good if XS modules are thread-safe.
Added some macroses to your very useful module.
Hope it helps.