I've never heard of such a thing. There are some restrictions on items in checked luggage (lighters, matches, etc.) but there are not any restrictions on liquids in checked bags.
Where exactly did you have to do this shifting around of sunscreen? At your airline's ticket counter, or at security. If it was at the security checkpoint, then you were dealing with carry-ons, not checked bags.
There are very strict restrictions on liquids/gels/aerosols in carry-on bags.