[bug] fix audio thread block when request to stop encode.