qtest: fix qtest log fd should be initialized before qtest chardev