kernel: mem_domain: Add arch specfic destroy for remove thread API.

If the thread id is same as current then handle the cleanup of the
memory domain.

Signed-off-by: Adithya Baglody <adithya.nagaraj.baglody@intel.com>
1 file changed