Unable to release package administration lock for this system

Hi,

I created a Solaris package, but at the end of installation (on a Solaris 10 sparc) I get :
#pkgadd -d MyApp_version__SunOS_sparc.pkg

...

Installation of <MyAppName> was successful.
pkgadd: ERROR: ERROR: Unable to release package administration lock for
this system; try again later
pkgadd: ERROR: ERROR: Unable to release package administration lock for
this system; try again later

The solution is to delete:
#rm �rf /tmp/.ai.pkg.zone.lock*

Then some lib issues occur .. fixed by:
#cd /usr/lib
#ln -sf ../../lib/libdlpi.so.1 libdlpi.so.1

Then I can install and uninstall without any problems as many time as I need.

Why does this issues occur when the package is first install on a system ?

Thanks,
Bianca