It's a good idea. It just doesn't work. Normally, you can force a replay frame write by changing joint states, grip states, or breaking or fracturing something, which causes a frame to be written with joint states, breaks and fractures, and position and rotation information. But that only works if the joint state changes during or right after a freeze for inputs.
Unfortunately, using the Lua command to freeze the game, doing your joint state changes and then unfreezing via Lua doesn't trigger a frame write to the replay.