Register functions in the RPC listener before running

A gear worker should not grab jobs before it has registered its
functions.  A race condition could prevent it from picking up
jobs assigned to it.

Change-Id: I34a4e94c030d54800d592edf89ae06bb0b2627fc
1 file changed