Legal system of child protection is in crisis, says senior judge