added lchmod, new tests, fixed for mknod return values

 - added lchmod
 - fixed up errno values for mknod
 - split up stat tests into test_stat, test_stat_chmod, test_stat_mknod

The new setting `USE_OLD_FS` was added, but as discussed, it only affects test code for now.