Social services have been slammed after two men were convicted of causing or allowing the death of a baby on the "at-risk" register.