Wrap pullEvent in test for lock.