Fixes #64936 : doc comments picked up from previous scanner run

doc_comment needs to be duplicated into the lex_state, otherwise
it gets freed next time someone calls RESET_DOC_COMMENT().