initial thread-safe enhancements for Apache2 filter