If your user had a login shell, you would need to type in your cmd as: su --shell=/bin/bash locked or sudo -u locked /bin/bash, provided Bash is available and listed in /etc/shellprovided the default shell specified for the target user is listed in /etc/shell.
(Note that there is an equal sign after the long option --shell.)
However:
the point of having a user with no login shell is precisely that that user cannot login in any way, be it directly at session start or via another user account. Oddly that is exactly what you are trying to achieve.
to be able to access that user (provided it has a login shell, by switching to its profile as shown above, you will generally need
sudoprivileges, or at least be able to use thesucmd...
Can you tell us, what you are trying to achieve ? It seems you are confused about no-login accounts, so expounding your ultimate objective may be helpful in advising you as to how you can do what you want to achieve.