Fix issues with critcl usage in the sha code. Do audit of the other critcl-based parts for anologous issues.
Merge sha* fixes. Audit of the other critcl parts was done, and no other misuse of cheaders was found.