This patch does the following:
- Fixing instances of finished() being called after error() in smb slave.
- Changing behaviour of the sftp/smb slave to conform to what is stated in D23194. In particular, the sftp slave should not call finished() in the open()/read()/write()/seek() methods.