Child locked in box as punishment, found dead by police