Some clarification of code in bucket.
Unlock is now closer to working, but still hangs.