Fix fatal errors for topic actions with lock.