Unlock mutex while waiting.
I'll eventually be happy with this.