Lowlevel lock implemenation for libc on Linux/SH.