cyclades: add tty refcounting