How to guarantee that two tasks will not be performed by same user

A similar topic was discussed here: Define candidate users dynamically