[TF-M] Race condition in SPM scheduler lock logic