Introduce a a fine grained form of locking