test_runner: add getter and setter to MockTracker
This commit allows tests in test runner to use the getter
and setter
methods as "syntax sugar" for MockTracker.method
with the options.getter
or options.setter
set to true in the options.
Refs: https://github.com/nodejs/node/pull/45326#discussion_r1014727289