fix: mock runtime run on main thread dead locks (#15450)