Add support for MODE_APPEND to ShadowContext.openFileOutput

This change adds support for Context.MODE_APPEND to ShadowContext.openFileOutput.