A foreign embassy is considered territory of that foreign sovereign. If that is where it took place, the surrender would have legally been on Saudi soil.
So if Osama walks up to the Saudi embassy in Tehran tomorrow he can ask to surrender under this amnesty.