Add Tid/Trace API UT and Fix a bug when set NULL trace

review at: 
https://rbcommons.com/s/OpenH264/r/810/
1. add Tid API UT
2. add Trace UT
3. Fix a crash issue when set NULL trace