Wait for ondisk flag to get set on compact. #1200