This prevents db/dcrd/dcrwallet connections from being closed while the dcrd notification handler is running.