Theano/Theano — pull request #2321 by abergeron (2014-12-04 00:22:19+00:00)
Title: Change the ModuleCache to only take the lock for actual compilation.

Also, once we acquire the lock do a refresh of the cache and try to
pick up modules compiled by others.