rtapi/rt-preempt: use distinct RTAPI module id's in ULAPI

this got in the way of creating several HAL components per process
which happened to share the same module_id (pid) and hence could not
be exited separately.

use same allocation method as src/rtapi/xenomai.c