intellidemand: add mutex protection around sampling rate change