def find(id)
      @lock.synchronize do
        begin
          ref = @items[id]
          return unless ref
          ref.__getobj__
        rescue WeakRef::RefError
          # :nocov:
          @items.delete id
          nil
          # :nocov:
        end
      end
    end
def find(id)
      @lock.synchronize do
        begin
          ref = @items[id]
          return unless ref
          ref.__getobj__
        rescue WeakRef::RefError
          # :nocov:
          @items.delete id
          nil
          # :nocov:
        end
      end
    end
Finds an item by its ID