Fixes logging errors during app initialization and in background threads.
The correlation_id filter must be applied to handlers (not just loggers)
to ensure all log records have the correlation_id attribute before
formatting occurs.
Issue: Gunicorn workers were crashing due to missing correlation_id
in logs from memory monitor and other non-request contexts.