Add R/W flag to openfile interface

Files should not be opened RW by default and parents of VHD files can always be
opened RO.

Signed-off-by: Si Beaumont <simon.beaumont@citrix.com>