Storage with locking function