Deadlock in FGameplayMediaEncoder

Hi Riot,

A fix for this issue has been checked in at CL#42525247 in //UE5/Main.

Best regards.