Warn and do not lock when closing note with duplicate title

Fixes Bug 705879.