Newgate Gaol, Dublin Act 1842