hm2-idrom test:  fix "too many arguments" error

Introduced by Y.T. in c6b87eec.  :P

From build log:

+ test -f realtime.log.0 realtime.log.1 realtime.log.10 realtime.log.11 [...]
test.sh: line 29: test: too many arguments

(Also, fix difficult-to-read test)
/mesa-hostmot2/watchdog.c:  Remove a int->double conversion

Fixes 'Unknown symbol __fixunsdfdi' on gcc-4.4.7 kthreads

Also see:

http://permalink.gmane.org/gmane.linux.distributions.emc.user/18718
http://permalink.gmane.org/gmane.linux.distributions.emc.devel/3663

(Plus one more in components/lcd.c that'll be harder to squash)
realtime.in:  recursively remove kmods and depending modules at unload

In kthreads flavors, when the realtime environment crashes badly
enough (e.g. linuxcncrsh starts during runtests but the test fails for
other reasons), 'trivkins', 'comp', and other modules that depend on
hal_lib and rtapi may be left loaded.  In this case, hal_lib and rtapi
cannot be unloaded without first removing those modules.

The RemoveModules function removes a list of modules recursively by
finding dependent modules in /proc/modules and removing them first.