fix bug in synccall with no threads: lock was taken but never released
fix bug in synccall with no threads: lock was taken but never released

chardi/musl,davidlazar/musl,chardi/musl,chardi/musl,davidlazar/musl