sh: unwinder: Move initialization to early_initcall() and tidy up locking.