[safestack] factorize the safestack initializtion in __safestack_init()