Use atomic operations to increment fork count