Trying multithreaded redirect loop detection (buggy!)