common: Conditionally compile-out os::log with -DTRACE_OS_LOG=0

For the purpose of integrating apitrace into Regal, unify the logging by
leaving out the defaut os::log method, optionally.

This change ought to have no side-effects for regular apitrace builds.

- Nigel