[installer][host] be super defensive when it comes to sync and flush to get preseed writing work consistently on OSX