Added helper functions for vnode lock/unlock
Added lock/unlock machenism