KAFKA-1008 Lock around unmap on windows.
KAFKA-1036 Close checkpoint file before renaming it for Windows compatibility.