Move lock/unlock code into startIabHelper() and stopIabHelper().