Stale lock installed for pkgadd

Any package that I try to install, is giving an error of 'lock':

# pkgadd -d openssl-1.0.0g-sol10-sparc-local

The following packages are available:
1 SMCossl openssl
(sparc) 1.0.0g

Select package(s) you wish to process (or 'all' to process
all packages). (default: all) [?,??,q]: all

Processing package instance <SMCossl> from </samba-inst/mysql/openssl-1.0.0g-sol10-sparc-local>

openssl(sparc) 1.0.0g
WARNING: Stale lock installed for pkgadd, pkg SMCexpat quit in analysis state.
Removing lock.

This appears to be an attempt to install the same architecture and
version of a package which is already installed. This installation
will attempt to overwrite this package.

The OpenSSL Group
Using </usr/local> as the package base directory.

:wall:

PS:
# cat /etc/release
Oracle Solaris 10 9/10 s10s_u9wos_14a SPARC
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Assembled 11 August 2010

File locks and sys V semaphores (which can be used for file locking) are kernel persistent.

The only way I know of to completely purge these is to reboot.

A stale lock means the process that originally held the lock has ended. But the lock is still out there. For example, this can happen when a pkgadd process aborts for some odd reason, like it received a kill -9. kill -9 prevents cleanup, like clearing file locks

Rebooting does not solve the problem, and even though I clean the files 'lock' (see commands below) the problem resurfaces.

rm /var/sadm/install/.lockfile
rm /var/sadm/install/.pkg.lock