ulni: fix for writer thread