Add missing mutex unlock on error
Add missing mutex unlock on error

Fixes #1770 <https://github.com/Genymobile/scrcpy/issues/1770>

Reported-by: lordnn

Genymobile/scrcpy,Genymobile/scrcpy,Genymobile/scrcpy