service: fix race in service on app lcore function