[PATCH 2/6] ipack: ipoctal: fix tty registration race