qsvenc: properly handle asynchronous encoding