when MDW fails to close because of a still-held lock, show the stack trace where the lock was obtained