Add main thread assert macro.