Added a test and a fix for issue where LocaleAware was not a thread safe way to pass locale to filters and functions. Fixes #40