libcamera: make shared bools volatile for sure and lock recordingEnabled method