The message needs cross-thread locking is not an error, it is a benign message that you might see in hub/controller probe log of a certain log level and it is not indicative of any issues.
This is a debug message that indicates the session needs and will use cross-thread locking. There are some cases where the hub doesn’t need to lock the thread and so this was put in for debugging purposes. It is logged at level 3 (informational) and should have been logged at level 5 (debug).
These are not messages indicating an error or otherwise unexpected condition and can be ignored.