common: Move trap_init() out of common.h