The boost.m4 check for linking boost_thread to boost_context is incorrect, as this isn't linked where is available. The first release to change this behaviour is 1.61.0
Here's the relevant commit:
boostorg/context@01d3c90
Here's the relevant lines in the 1.71.0 release of boost_context:
https://github.com/boostorg/context/blob/boost-1.71.0/build/Jamfile.v2#L783-L789