proxysink: Make sure stream-start and caps events are forwarded, and fix memory leak
There might be a sequence of event and buffer flow:
- Got stream-start/caps/segment events
- Got flush events
- And then buffers with a new segment event
In the above case, stream-start and caps event might not be reached to peer proxysrc if peer proxysrc is not ready to receive them.