Locking cache

Ivan pointed out that he is firing off a lot of tile requests with the same SLD, and if we don't lock to wait for the domain to be pre-calculated, it will be calculated many times.  This lock will hold the requests for a couple seconds until this pre-calculation is done.