I would record such a flight in my logbook as SNY, the times would not count towards any totals but my landings would count to requalify me.
An interesting interpretation of the rules
Are you saying that you can't count the hours as he is PIC, but you can count the landings as you are sole manipulator of the controls, even though he is still PIC and you aren't able to carry a passenger as you are out of currency?