Fix EZP-22113: Adding items to block is not published immediately

The timeout can be configured. It can be used on very fast machines.
(cherry picked from commit d040f3c32f8faf4b6fb52d50dadb6b4812d9b580)