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

Change-Id: I1d3c219314b11aa44f17138d9ee73b2fc0c3f99c

Kurento/kms-core,KurentoLegacy/gst-kurento-plugins,ESTOS/kms-core,shelsonjava/kms-core,ESTOS/kms-core,TribeMedia/kms-core,ESTOS/kms-core,Kurento/kms-core,KurentoLegacy/gst-kurento-plugins,shelsonjava/kms-core,shelsonjava/kms-core,Kurento/kms-core,Kurento/kms-core,TribeMedia/kms-core,KurentoLegacy/gst-kurento-plugins,TribeMedia/kms-core,KurentoLegacy/gst-kurento-plugins,TribeMedia/kms-core,ESTOS/kms-core,shelsonjava/kms-core