Test if the ctl fd is already open

valgrind will use fd 3 for the log file. Check if the fd has been
opened.