test-baremetal: fix missing setting x0 return value Examples were just returning on ret without setting x0, which led to failures... those were not noticed because of how broken the testing system was ;-)
This allows add.c to run unmodified on both! For that to work, use int main on baremetal, and pass the return value to the final exit.