Bug 923486, part 1 - Harmonize ordering of definitions of NS_IsMainThread(). r=ehsan
Bug 923486, part 2 - Define NS_IsMainThread out-of-line in ASAN builds. r=ehsan