test: refactoring test-repl-tab-complete with common.mustCall
The original test uses a variable to explicitly count how many times
the callback is invoked. This patch uses common.mustCall
to track
if the callback is called or not. This would make the test more robust
as we don't explicitly hardcode the number of times to be called.
cc @cjihrig