Hi, it seems execution of usleep eventually reaches this code:
  https://github.com/kamailio/kamailio/blob/master/src/core/ut.h#L508
so it seems it would block the process and so it might cause delay of packet processing if many processes do this at the same time.
Can someone confirm this?