win32: use a more modern API call in FileCommit()
win32: use a more modern API call in FileCommit()

This is a backport from upstream
https://github.com/bitcoin/bitcoin/commit/aab8fc58c6e6dc6e0a104170bd2aa10dc1af5dea

transferdev/Transfercoin,transferdev/Transfercoin,aspaas/ion,transferdev/Transfercoin,syfares/Transfercoin,Infernoman/Transfercoin,transferdev/Transfercoin,transferdev/Transfercoin,Infernoman/Transfercoin,aspaas/ion,MinuteManReserve/mmr-core,Infernoman/Transfercoin,syfares/Transfercoin,aspaas/ion,MinuteManReserve/mmr-core,syfares/Transfercoin,syfares/Transfercoin,Infernoman/Transfercoin,Infernoman/Transfercoin,aspaas/ion,transferdev/Transfercoin,syfares/Transfercoin,aspaas/ion,aspaas/ion,MinuteManReserve/mmr-core,syfares/Transfercoin,MinuteManReserve/mmr-core,Infernoman/Transfercoin,MinuteManReserve/mmr-core