Preserve tree filemode in index during checkout

Don't try to determine whether the system supports file modes
when putting the tree data in the index during checkout.  The tree's
mode is canonical and did not come from stat(2) in the first place.
Merge pull request #2070 from ethomson/checkout_filemode

Preserve tree filemode in index during checkout