Bug 1001849: expose general chmod, and chmod-to-umask, support in OS.File. r=yoric