fix mutex unlock