Yes, do transfer ownership as normal buying/selling practice and register ur friend as 2nd rider on insurance...but this will be wasting money.
since its ur friend, just do the simple one, you just buy register 2nd rider on insurance for urself so the bike considered as yours also...