util/sha1: rework _mesa_sha1_{init,final}