lua: subprocess: support cancellation on Windows