halcmd: ping rtapi_app before going ahead with hal_init()

this closes a race condition where hal_init() would be called
before rtapi_app is done