Pulls out "tm ok" state into KernelHealth

which is also now shared with XaLogicalLog so that the same rules about
panicing and respecting a kernel panic event also is in place when
applying external transactions.
Merge pull request #2175 from tinwelint/1.9-apply-tx-kernel-panic

Pulls out "tm ok" state into KernelHealth