sh: Avoid undefined behaviour shifting negative values left in arithmetic.

With i386 base clang, arith_yacc.o remains unchanged.