Bug #4666 : Technical error on delayed notification synthesis handling

- adding a unit test to verify delayed notification deletion performances
- fixing a little inconsistency between JPA entity and JPA repository
- passing to SQL/JPQL IN clause from batches of 5000 parameters to 500