Merge "st-hal: Add buffering thread independent of callback thread"