Revert D34645509: [PyTorch] Update Synchronized<T>::withLock() to return the type/value from the aceepted callable
Test Plan: revert-hammer
Differential Revision:
D34645509 (https://github.com/pytorch/pytorch/commit/de4a87fb481b1afbd5e551b0f290d74573099bda)
Original commit changeset: 9a4bd5d1d78a
Original Phabricator Diff: D34645509 (https://github.com/pytorch/pytorch/commit/de4a87fb481b1afbd5e551b0f290d74573099bda)
fbshipit-source-id: 3a1737cda866085fc0dec9997d0ce659f636a0c2
(cherry picked from commit 46d3300009ef965c29be94730ac38d549c46ade2)