As a workaround, when you see (*unknown*), delete the corresponding file in db/locks. For example, if you see:
/home/ed/canonical/maas/sandbox/db: cluster is locked by: * 6487 (*unknown*)
do:
$ rm /home/ed/canonical/maas/sandbox/db/locks/6487
The (*unknown*) bit means that it was unable to determine the command line for that process, which 99% of the time means that process is no longer running.
As a workaround, when you see (*unknown*), delete the corresponding file in db/locks. For example, if you see:
/home/ ed/canonical/ maas/sandbox/ db: cluster is locked by:
* 6487 (*unknown*)
do:
$ rm /home/ed/ canonical/ maas/sandbox/ db/locks/ 6487
The (*unknown*) bit means that it was unable to determine the command line for that process, which 99% of the time means that process is no longer running.