fixed bug in ConcurrencySafeEntity

Was not handling negative version numbers correctly.