I have taken the OpenLDAP 2.4.39 and able to work properly but when I do slapcat  then it hangs and always complains on alock.
But if I delete alock it works fine.
I have 4.6.21 version of bdb
I don't know much about alock file in bdb .
Can you please suggest is it ok to delete alock file for running slapd and slapcat ?