Fix Bug: 1. Unlock a not held mutex when spawn fails.