Revert "Support params/buffers inside cond and map (#102310)"
This reverts commit 766f236bad2327060575780219e0d4964dc661e5.
Reverted https://github.com/pytorch/pytorch/pull/102310 on behalf of https://github.com/huydhn due to The test is failing in trunk https://hud.pytorch.org/pytorch/pytorch/commit/766f236bad2327060575780219e0d4964dc661e5 ([comment](https://github.com/pytorch/pytorch/pull/102310#issuecomment-1592159710))