RM: fix the issue - RM exit after a period of time
RM: fix the issue - RM exit after a period of time

Add call to pthread_detach to make thread resource releasable.

tpm2-software/tpm2-tss,01org/tpm2-tss,tpm2-software/tpm2-tss,01org/TPM2.0-TSS,tpm2-software/tpm2-tss,01org/TPM2.0-TSS,01org/TPM2.0-TSS,01org/tpm2-tss,01org/TPM2.0-TSS,01org/tpm2-tss