Windows: avoid race when writing mountPointString