core/test: fix compile error in run-trace

Signed-off-by: Cédric Le Goater <clg@fr.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Remove #define sync in test/run-trace.c - don't confuse with sync(2)

Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>