lfs_segwait() blocks until a new segment is acquired for writing by the filesystem specified by
*fsidp or if
*fsidp is -1, until a segment is acquired for writing by any LFS filesystem.
If
timeout is non-zero,
lfs_segwait() will return after
timeout milliseconds regardless of whether a new segment has been designated for writing or not.