udev: move udev_rules_check_timestamp to shared

I want to use this from a bulitin in a subsequent patch.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>