Cleanup thread

Reduce `beast::Thread` public interface and remove arguments from functions that were never used.