Fix issues with *Execution entities updates during step execution. Refre...

## Fix issues with *Execution entities updates during step execution. Refresh entity state when EM is reopened after fail

It solves following things:
 - SQL errors on PostgreSQL due to reserved keyword
 - Avoid timeout of connection that used for logging of execution process. 

2nd point usually cause errors like "Entity manager is closed", but actually it was another SQL exception f.e. "Mysql has gone away"  due to inactivity 
Great, thanks.

Can you do a separate PR for that ? So we can merge it fast ;)
For EntityManager is closed problem, just increase your MySQL wait_timeout configuration.

And by the way, we don't have this EntityManager is closed anymore, since we push stepExecution information every batch in the ItemStep.

So the wait is usually quite below the wait_timeout.