Fixes for data pruning feature
The data pruning feature was locking the tables and retrying multiple times, which could potentially use up available PHP workers when trying to record new visitors at the same time. It no longer locks tables or retries its queries and has additional safeguards in place to prevent it from running when not enabled due to leftover cron jobs or stale object caching.
