I am not sure whether it has a grace period as usual in this situation, but I do suggest your friend do the F-1 transfer as soon as possible. If there is a gap for only a very short time, USCIS may not care about it and approve the transfer. USCIS usually is not so strict for this kind of thing.