smp: Fix error case handling in smp_call_function_*()