make zlog works on windows

make slog works on windows, with some changes:
1. use CreateFile api to open files on windows;
2. use one RwLock to rotate log files.