I wait until a quiet moment towards the end of boarding, and then go up to a crew member and say I would like to change into pyjamas, and request the whole caboodle. Linking the request to changing now implies I need it immediately, and works well for me. If the weather outside is such that I wouldn't want to be in pyjamas in an emergency, then I wait until end of boarding and say "change after takeoff"...