Move `Thread.main[:tries_count]` definition back up where it works