Get share mode lock

See how deeply locking is used in smbd code here [1].