Added delete
Added Lock logic. and made to return true or false at Get, Delete, GetOrSet.
fixed tests