smbd: Move oplock handling together