Man before court for stepson's murder says inmates beat him