tls: allow free(NULL) with DBG_QM_MALLOC enabled