For the purposes of attaching an LB to a cabinet a chase nipple or a box connector is a better choice. I do believe a "close nipple" made up from a short section of straight thread pipe is also appropriate. If you use a RMC nipple, like the one picture above, I think you also need to use 2 locknuts, one inside and one outside.