swtpm: cuse: Lock file_ops_lock before reading tpm_running

Lock the file_ops_lock before reading the tpm_running variable so that
access to access to it is serialized among all possible threads.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
1 file changed