common: Move hang() to the same header as panic()