fixed a potential race condition in EBBMgrPrim.c
fixed a potential race condition in EBBMgrPrim.c

SESA/EBBlib,SESA/EBBlib,SESA/EBBlib,SESA/EBBlib,jmcadden/EBBlib,jmcadden/EBBlib,jmcadden/EBBlib,jmcadden/EBBlib