Fix missing dynamo cache lookup registration in profiler.profiler (#97305)
This follows https://github.com/pytorch/pytorch/pull/96199 and supports the 'other' profiler.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/97305
Approved by: https://github.com/voznesenskym