ERP5: fix neo log rotation

neo logs to sqlite databases, not to "append only" files, so we need extra
care when rotation and cannot use the new "copytruncate" approach.

needs erp5!1786

See merge request !1395
16 jobs for master
in 0 seconds, using 0 compute credits, and was queued for 0 seconds