cifs: factor out check for extended security bit into separate function