Cherry-pick the fix for "ancient oplock bug" (0670975261c5f29394f9e9d25f899a7de948dad1 in samba git repo).

Ticket: #4035