fix rotating file handler write lock