[PATCH openEuler-22.03-LTS-SP1 2/3] spi: fix use-after-free of the add_lock mutex