ARM: lib: add call_with_stack function for safely changing stack