More Adhoc functions implemented

the locks are being newed during adhcoMatchingCreate function where the context is created, and deleted during adhocMatchingDelete function