Revert D25135415: [PyTorch] Use plain old function pointer for RecordFunctionCallback
Test Plan: revert-hammer
Differential Revision:
D25135415 (https://github.com/pytorch/pytorch/commit/7e23ee1598c916a835801ca67c74e0ed8b0b7d82)
Original commit changeset: 5e92dc79da64
fbshipit-source-id: 45b1634a100084c84dca158a1f16ca760fef6988