pub fn check_writable(account: &AccountView) -> Result<(), ProgramError>
Check that an account is writable.