cifs: do all necessary checks for credits within or before locking