I've added a lock to allow concurrency.  The original code had a static object as well, but made no allowance for concurrency.