sim/posix: move rt_hw_context_switch_interrupt after it's definition

This fix a compile error in Clang.