KmsHttpLoop: Thread should hold its own reference of context and loop

Change-Id: Id705eb419eaee5ac6bcd7737b06f503ded4f9478