Add C function to check S4 class git_note argument

* src/git2r_error.c (git2r_error_check_note_arg): Check S4 class git_note