Use a macro for conditionally logging based on ENABLE_TRACE_MT

This avoids having an extra ifdef around every single WelsLog
call.