I assume you need to give the exact folderID (and fileIDs) in both the first and second step, and not the folder name for such commands to work.
The command syntax to use for the transfer is:
gam user
t...@acme.org update drivefileacl 0B8aCWH-xLi2NckxXOEp5REUtNEE
sa...@acme.org role owner transferownership true
It's also available in a more flexible command in another version of GAM, called
GAMADV-X.
Check
GamCommands.txt for syntax for the command
claim.
There you give the folderID to begin with, and it will claim all folders and files recursively.