basesrc: avoid potential deadlock
basesrc: avoid potential deadlock

In gst_base_src_start_complete() we do a perform_seek() that will eventually
start the streaming thread which acquires the live lock and then goes to sleep
in the case of appsrc. Right after we perform seek we also try to acquire the
live lock which might then deadlock.

fix this by taking the stream lock before performing the seek. This makes sure
that the streaming thread cannot start and grab the live lock until we are done
and release the stream lock again.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=676048

StreamUtils/gstreamer,lubosz/gstreamer,krieger-od/gstreamer,jpxiong/gstreamer,jpakkane/gstreamer,krieger-od/gstreamer,cfoch/gstreamer,ensonic/gstreamer,mparis/gstreamer,jpakkane/gstreamer,ensonic/gstreamer,collects/gstreamer,cablelabs/gstreamer,cfoch/gstreamer,cfoch/gstreamer,shelsonjava/gstreamer,shelsonjava/gstreamer,StreamUtils/gstreamer,centricular/gstreamer,ensonic/gstreamer,centricular/gstreamer,cablelabs/gstreamer,Lachann/gstreamer,cablelabs/gstreamer,Lachann/gstreamer,lovebug356/gstreamer,krieger-od/gstreamer,lovebug356/gstreamer,centricular/gstreamer,lovebug356/gstreamer,cfoch/gstreamer,collects/gstreamer,lubosz/gstreamer,jpxiong/gstreamer,justinjoy/gstreamer,jpxiong/gstreamer,cablelabs/gstreamer,krichter722/gstreamer,mparis/gstreamer,mparis/gstreamer,lubosz/gstreamer,surround-io/gstreamer,Lachann/gstreamer,krichter722/gstreamer,justinjoy/gstreamer,jpxiong/gstreamer,cablelabs/gstreamer,krieger-od/gstreamer,StreamUtils/gstreamer,surround-io/gstreamer,lubosz/gstreamer,justinjoy/gstreamer,surround-io/gstreamer,lubosz/gstreamer,jpakkane/gstreamer,surround-io/gstreamer,surround-io/gstreamer,Lachann/gstreamer,lovebug356/gstreamer,lovebug356/gstreamer,collects/gstreamer,centricular/gstreamer,krichter722/gstreamer,krichter722/gstreamer,collects/gstreamer,cfoch/gstreamer,Lachann/gstreamer,ensonic/gstreamer,StreamUtils/gstreamer,justinjoy/gstreamer,krieger-od/gstreamer,centricular/gstreamer,shelsonjava/gstreamer,krichter722/gstreamer,shelsonjava/gstreamer,collects/gstreamer,jpakkane/gstreamer,jpakkane/gstreamer,justinjoy/gstreamer,mparis/gstreamer,ensonic/gstreamer,mparis/gstreamer,shelsonjava/gstreamer,jpxiong/gstreamer,StreamUtils/gstreamer