Fixed minor bug in lockingiterator