added lock/unlock to smb