notes-merge: convert write_note_to_worktree to struct object_id