Fixed accounting. Issue: #2975
- Got rid of some lambda functions so log_stats can be pickled to transfer entry object's state from forked child back to the parent process.
- If possible, explicitly pass and use glideFactoryConfig and glideFactoryMonitoring instances specific to entry