[backport] values(Predicate) shouldn't return old values that are being updated in ...

...transaction. Fixes #2310