Closed the left-over write lock problem.

Every IShielded now keeps track of which thread locked it, and so Rollback unlocks it
properly every time.