Improved the FilterPool interface and made the implementation fully
thread-safe.