By design hibernate sessions (persistence context) are isolated from one another, and guarantee repeatable reads.
Better way to handle your issue is call session.refresh() on session A if you suspect that you object is stale, rather than calling evict() and get()