Looks like we need to make sure GP_DATA_STROKE_EDITMODE flag is cleared,
otherwise this will be picked up by GPENCIL_EDIT_MODE() and will be
interpreted as being in editmode in a couple of places (e.g. transform
context will be set incorrectly to CTX_GPENCIL_STROKES).
Not sure if this is the best place for this?
(I've looked at 'direct_link_gpencil' or 'lib_link_gpencil' but these
are also called when opening a file, so we dont want to loose proper
editmode in that case...)