Keep interactive completion blocked when buffer changes

An external counter is needed. There is no function to retrieve the
blocked state of a signal handler.