Fixed thread-safety of rest_server example
Fixed thread-safety of rest_server example

oktal/rest,oktal/pistache,RossRogers/pistache,oktal/rest,RossRogers/pistache,oktal/pistache,oktal/rest,oktal/rest,RossRogers/pistache,oktal/pistache,RossRogers/pistache,oktal/pistache,oktal/pistache