Split off race between file status check and delete to bug 1184517, leaving this bug to deal with the incorrect os_file_get_status() return value handling.
Split off race between file status check and delete to bug 1184517, leaving this bug to deal with the incorrect os_file_ get_status( ) return value handling.