Added DMT_UNSAFE define checks

If DMT_UNSAFE is defined, validation of the pointer given to
_dmt_realloc() or _dmt_free() (which could result in noticeable
performance loss with many allocations) is not done.