Port file.lchown() from develop branch