use ref counting on deleg lock entries.

Signed-off-by: Srikrishan Malik <srimalik@in.ibm.com>