t==null check before the lock otherwise lock is wasted
we have to use a clear coding style so I changes the markup a bit