issue-66: ensure order between memory region and libunwind locks

I.e. to prevent possible deadlock when this locks are taked by
different threads in different order.
issue-66: integrate unwind_safeness_helper