Since he has sold the flats before getting the occupancy certificate he has sold his rights in the land and it will attract capital gain i.e. sale value received less fair value ofof sha of land sold.
When he receive his share of flat it will also attract capital gain and you won't be able to claim any exemption u/s 54F since he owns a flat so he needs to pay full tax.
Hope you find the information helpful if you do please rate it 5 and provide your valuable feedback for my improvement.
Thank you