Fixes possible race condition in TwirlCompiler
Avoid deadlock in object lazy init

With new presentation compiler threading.
Use deprecated Global.logThrowable for scala 2.9