RandomFileQueue: multithreading safety
fix ftp urlparse and infinite ftp dir depth