Test for double check locking. Needs to be improved, but most of the
logic is there.