BZ-1035246 - Parallel gateways not marked as finished in process instance model

(cherry picked from commit eae185c7de7dd7be0fd08ca59a6c8a8d3d3df398)