Use a macro for conditionally logging based on ENABLE_TRACE_MT

This avoids having an extra ifdef around every single WelsLog
call.
Merge pull request #429 from mstorsjo/simplify-ifdef-with-macro

Use a macro for conditionally logging based on ENABLE_TRACE_MT