Solar systems have a 'baby-proof' system that protects newborn planets, study finds