If you're using a control surface and have some of tracks hidden in the Console view, and have the "Console View" radio button under [Control Strips Visible in] checked in Edit > Preferences > MIDI > Control Surfaces, I'm afraid the issue you're seeing is an intended behavior.
For example, if you click Track 4 in the Track view when Track 4 is hidden in the Console view, the light-blue marker moves to one of tracks that are visible in the Console view according to the "Control Strips Visible in" setting in Preferences. I've just tested it and see exactly the same behavior you're seeing. As you say, if I click the Delete Take Lane button, it not only deletes the lane but also moves the track focus to Track 1 (I had the same issue before but in my case it was the opposite. I had some tracks hidden or packed in a collapsed folder and when I clicked those hidden tracks in the Console view, the light-blue focus would jump to a different track).
If you select "All Strips" under [Control Strips Visible in] in Preferences, you won't see it happen anymore.
Anyone who wants to see it happen can see it by following these steps:
1. Create a new project.
2. Insert 10 tracks.
3. Go to Edit > Preferences > MIDI > Control Surfaces.
4. If you don't have any of the following controller surfaces set up in the page, click the Add New Controller/Surface button in the upper right corner and choose one of them. You don't need to select anything from the Import/Output dropdowns.
A) ACT MIDI Controller
B) Edirol PCR-M30
C) A-PRO
D) Edirol PCR-300
5. Check the "Console View" radio button under [Control Strips Visible in], click OK to exit Preferences.
6. Open the Console view and hide, for example, Track 4 and Track 8.
7. In the Track view, click any track other than Track 1, 4 and 8. Then click Track 4 or 8. You see the light-blue marker jump to Track 1. If you click Track 1 or 8 first and then click Track 4, the marker stays at Track 4. This is why you don't always see the marker jump.