Unlock the lock before destroying it.
This issue was reported by Andrew Galante.

MFC after: 3 days