Ok I don't know for sure if you can do this but can you set it up so that a chest will only lock if a shop is made on the chest and no other time.
Separate names with a comma.