[mock] prevent duplicate user identities

* lock on value