freerds: fix functions not returning properly in RpcEngine