Allow daemon.rb to accept a synchronous option to join threads

To run a separate Sidekiq metrics endpoint we will run it in a process. We have to be able to join the thread (optionally). This functionality can be implemented (but not run) before the metrics server is live.

See !73049 (67052df8) for full context

Edited by Roy Zwambag