That did not work for me either.
But I recognized that the following line appears in syslog, every time I'm trying to create a new note in the imap notes folder in m notes app.
Jul 26 21:34:12 server Notes[768]: folderProxy addNoteToRemote returned false
which might be indicating that notes is not able to put the new note to the server. This is confirmed by the fact that the new note appears under the recovered items in the "on my mac folder" alter on.
And additionally sometimes the following lines occurs in between (but not every time) -- strange
Jul 26 21:40:13 server sandboxd[810] ([809]): mdworker(809) deny file-write-owner /Users/paddy/Library/Containers/com.apple.Notes/Data/Library/Notes/NotesV1.stor edata-wal (import fstype:hfs fsflag:1480D000 flags:240000005F diag:0 uti:com.apple.notes.externalrecord plugin:/Library/Spotlight/Notes.mdimporter - find suspect file using: sudo mdutil -t 24010898)
Jul 26 21:40:13 server kernel[0]: Sandbox: sandboxd(810) deny mach-lookup com.apple.coresymbolicationd
Jul 26 21:40:13 server sandboxd[810] ([809]): mdworker(809) deny file-write-owner /Users/paddy/Library/Containers/com.apple.Notes/Data/Library/Notes/NotesV1.stor edata-shm (import fstype:hfs fsflag:1480D000 flags:240000005F diag:0 uti:com.apple.notes.externalrecord plugin:/Library/Spotlight/Notes.mdimporter - find suspect file using: sudo mdutil -t 24010898)