Linux: LAD_client: Avoid hang in fopen during connect