[PATCH 4/5] nodedev: Separate mdevctl monitor setup into a function