The Shah of Iran has resumed his lonely search for a safe haven. But the former monarch's decision to leave Panama for Egypt is expected to complicate both the delicate effort to extract the American hostages from Iran and the positin of President Sadat at home and in the Arab world.