__ctype_load(): check for calloc() failure
(cherry picked from commit ef061a2e2978a5e0fbfe2766ff7ab8f529bbd966)