Almost by definition, nylocks can't just fall off. However, you are where you are &, in that position, I'd simply rummage around all the odd ones scattered around 'til I found one that fitted.
If you've really got to go out and buy, measure the other one (there are some bastard size nuts out...