When deleting a file, all leases granting handle caching lease to the file should be recalled (as it is happening on Windows). In Samba this is not the case.
Searching MS-FSA for "2.1.4.12" (Algorithm to Check for an Oplock Break) it seems there's more missing, eg in 2.1.5.16 Server Requests Setting of Security Information ie when a client sets a DACL we should check for H breaks.
We'll also need this for Directory Leases, looking...
This bug was referenced in samba master: aaa9e60ddbcd7c905699739c9d70cb71bc2f74bc 67f560133744eaee9793562f0b48a67ea4221243 6cc25159d5a0b5be024629467b866939dd667036 9e13780a8fc48ae8eeda9b14fe72e828166edb3d