As verbs the difference between locked and needed
is that locked is (lock) while needed is (need).
As adjectives the difference between locked and needed
is that locked is of a door, etc, that has been locked (with a key) while needed is necessary; being needed.
locked
English
Verb
(head)
(lock)
Adjective
(-)
Of a door, etc, that has been locked (with a key).
(Dublin) Very drunk.[A Dictionary of Hiberno-English: The Irish Use of English, Terence Patrick Dolan , p.142.]
needed
English
Verb
(head)
(need)