Abolish dxpSafeAlloc and malloc wrapper

These changes make malloc/free thread-safe functions