Revert "Revert "File{Input,Output}Stream: catch ownership misassignment on construction.""

This reverts commit 38ab76fe3bbc113e2839922710959283e40616fe.

Reason for revert: the crashes in backup and restore were due to the corresponding fix not being merged until after

Bug: http://b/156867945
Bug: http://b/159264419
Change-Id: I301a9ac88cfd8be070c1b35d24eb71f489a76419
Test: atest android.backup.cts.FullBackupLifecycleTest
2 files changed