shmem: add missing syscalls for android
net: add missing typedef for android
thread: rely on default thread inheritance on android

pthread_attr_setinheritsched is missing from android's pthread, but the
PTHREAD_INHERIT_SCHED values is the default when creating new threads.
applog: update the permission bit defines

S_IREAD, S_IWRITE (and S_IEXEC) are deprecated per
http://www.gnu.org/s/hello/manual/libc/Permission-Bits.html
process: disable endgrent() on android
serial: use ioctl() directly

tcdrain() is not available on Android.
file: add a lockf() replacement
prep for release