Nonparametric inference of general while‐alive estimands for recurrent events