DATAGRAPH-413 ConcurrentModificationException when persisting entity after modification outside of tx

@jexp Came across this issue whilst looking into something else and have a fix which works via this PR. This fix is specifically for the Advanced mapping mode (AspectJ), however want to check if there are any implications for creating a Transaction on the fly within the detached entity on the simple mode which I am unaware of? All tests still pass