"en labor is a part of his punishment, there would be a show of reason for saying that the regulation came within the implied powers of the prison authorities." . . . .