The Scottish Prison Service should no longer be safe from criminal prosecution, the chief of the service has said.