regulator: core: fix use_count leakage when handling boot-on
This is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven. This ID is fixed in Linux Kernel version v6.0.16 by commit 4dd6e1cc9c7403f1ee1b7eee85bc31b797ae8347. For more details please see the references link.