Prison whistleblower highlights lock problems, inmate beaten