Step to reproduce
1. Add three documents: A, B and C
2. Select A and lock it.
3. Select B and lock it.
4. Select C and lock it.
Result: C is not locked
Expected: C is locked
The root case is that when we checkin or checkout a document, SPA surface is flipped and all the portlets on it are reseted. Setting a breakpoint where this is happening I realized this processed was being called twice every time (one from here, and one from here). This is like that in 7.0.x and not in master due to a wrong backport of
LPS-70926, it is enough to compare changes in files in master and 7.0.x. In that moment, we should have backported partially LPS-68751 (changes here).