Merge "Camera: Fix use-after-free issue with provider instance" into main