Only fclose($fp) when $mode & NET_SFTP_LOCAL_FILE.
Merge pull request #421 from bantu/issue/418

SFTP: Only fclose($fp) when $mode & NET_SFTP_LOCAL_FILE.

* bantu/issue/418:
  Only fclose($fp) when $mode & NET_SFTP_LOCAL_FILE.
Merge branch 'master' into php5

* master:
  Only fclose($fp) when $mode & NET_SFTP_LOCAL_FILE.