Direct check of pkg->locked
Cache developer_mode