wpi: Fix a lock leak in an error path in wpi_run()
PR: 258243 Reported by: dinghao.liu@zju.edu.cn MFC after: 1 week