poll: Refactor and make more lockfree
poll: Refactor and make more lockfree

Refactor the wakeup of the poll thread.
Always make a control socket to make things easier.
Make more methods lockfree.

Lachann/gstreamer,collects/gstreamer,shelsonjava/gstreamer,cablelabs/gstreamer,ahmedammar/platform_external_gst_gstreamer,ensonic/gstreamer,lovebug356/gstreamer,drothlis/gstreamer,justinjoy/gstreamer,StreamUtils/gstreamer,shelsonjava/gstreamer,jpxiong/gstreamer,Lachann/gstreamer,Lachann/gstreamer,magcius/gstreamer,lovebug356/gstreamer,jpxiong/gstreamer,lovebug356/gstreamer,krieger-od/gstreamer,mparis/gstreamer,ensonic/gstreamer,justinjoy/gstreamer,drothlis/gstreamer,ylatuya/gstreamer,StreamUtils/gstreamer,krichter722/gstreamer,lubosz/gstreamer,jpakkane/gstreamer,krieger-od/gstreamer,cfoch/gstreamer,lovebug356/gstreamer,mparis/gstreamer,centricular/gstreamer,lubosz/gstreamer,jpakkane/gstreamer,ahmedammar/platform_external_gst_gstreamer,krieger-od/gstreamer,centricular/gstreamer,StreamUtils/gstreamer,justinjoy/gstreamer,Distrotech/gstreamer,krichter722/gstreamer,jpxiong/gstreamer,Distrotech/gstreamer,ensonic/gstreamer,mparis/gstreamer,krieger-od/gstreamer,cfoch/gstreamer,lubosz/gstreamer,cablelabs/gstreamer,surround-io/gstreamer,StreamUtils/gstreamer,shelsonjava/gstreamer,ylatuya/gstreamer,shelsonjava/gstreamer,Distrotech/gstreamer,cfoch/gstreamer,krichter722/gstreamer,jpakkane/gstreamer,drothlis/gstreamer,krichter722/gstreamer,collects/gstreamer,lubosz/gstreamer,cablelabs/gstreamer,lubosz/gstreamer,ahmedammar/platform_external_gst_gstreamer,krieger-od/gstreamer,magcius/gstreamer,ensonic/gstreamer,mparis/gstreamer,surround-io/gstreamer,magcius/gstreamer,StreamUtils/gstreamer,shelsonjava/gstreamer,magcius/gstreamer,cablelabs/gstreamer,jpakkane/gstreamer,magcius/gstreamer,lovebug356/gstreamer,Distrotech/gstreamer,centricular/gstreamer,mrchapp/gstreamer,mrchapp/gstreamer,drothlis/gstreamer,Distrotech/gstreamer,mrchapp/gstreamer,ylatuya/gstreamer,ylatuya/gstreamer,cfoch/gstreamer,Lachann/gstreamer,krichter722/gstreamer,collects/gstreamer,mrchapp/gstreamer,collects/gstreamer,ylatuya/gstreamer,surround-io/gstreamer,centricular/gstreamer,drothlis/gstreamer,ahmedammar/platform_external_gst_gstreamer,ensonic/gstreamer,mparis/gstreamer,justinjoy/gstreamer,cfoch/gstreamer,jpxiong/gstreamer,jpxiong/gstreamer,Lachann/gstreamer,ahmedammar/platform_external_gst_gstreamer,surround-io/gstreamer,centricular/gstreamer,justinjoy/gstreamer,collects/gstreamer,jpakkane/gstreamer,mrchapp/gstreamer,surround-io/gstreamer,cablelabs/gstreamer