rescan: Stop rescan for 2s if BT node is removed
The intention here is to fix a Bluetooth bug where changing between different profiles momentarily causes streams to be linked to an internal speaker. Unfortunately, this case is not handled by the event dispatcher because some signals are emitted using idle callbacks, and therefore we have to rely on extra logic in rescan.lua
to solve the problem.