HTTP/WS init creates worker threads, which would be terminated by a fork
to background. Reverse the order.
Closes #1896
Possibly also relevant to #1895
Change-Id: I30b61e07ad3bed41b6b241e8943ed479277c1474
(cherry picked from commit dd04af1163)
mr11.5