I have fixed this problem (I think). The changes are in the source code, and will be reflected in the binaries when next we rebuild them -- this weekend, perhaps.
No guarantees there still aren't glitches in locking pbars. The possible sequences of redrawing events is too complex to hold in my head, and so something may still end up de-synchronized.