Added [lock] option to lookups. Locks the cache entry till the calling process exits.