Replace all references to the old n*sleep functions with the equivalent cgsleep_*s replacements.