allocate main_fiber inside synch. primitives