[functorch] add test for torch.manual_seed inside grad transform (#87233)
I can see this behavior regressing really easily, so adding a test for
it.
Test Plan:
- run test
Pull Request resolved: https://github.com/pytorch/pytorch/pull/87233
Approved by: https://github.com/Chillee