regulator: core: fix a possible race in disable_work handling