OWX_DS2480: fix pt_query not storing commands in thread-local
OWX_DS9097: refactor using ProtoThreads interface
OWX_DS2480: swallow outstanding readdata before writing next command in pt_query