Judging from the error message, it seems the problem is during some internal initialization process, having not much to do with slapadd (ie. I guess you will get the same error with just slaptest). And according to here, you might have to install a newer version of OpenLDAP.