[entropy.locks] add is_already_acquired()

This method returns whether the lock has been already acquired.
It is useful in cases where the reentrancy property is leveraged.
[entropy.db.sqlite] do not clear the cache if locks are already acquired
[entropy.client.methods] add an "unlocked" version of get_package_action()