habit_init: ensure it isn't run more than once