Changed leasing to use task rather than thread
Allowed blob lease to be re-aquired if previously aquired by this test helper