Previously the first call to rmt_driver_uninstall() would remove the interrupt handler, even if other channels still had the driver installed. Adds an OS-level lock to control concurrent registration/deregistration of channels.