this looks wrong - we shouldn't acquire the lock if we don't need it.