Fixed player inventory and container locking functionality