nptl: fix sem_open with O_CREAT
nptl: fix sem_open with O_CREAT

Temporary file name template passed to __gen_tempname had no "XXXXXX" in it,
so __gen_tempname returned EINVAL which led to sem_open failure.

Fixes NPTL tests tst-sem4, tst-sem7, tst-sem8, tst-sem9.

Signed-off-by: Roman I Khimov <9c65a1c4e83e5c30b8a170f663f3fbf79112fbfa@altell.ru>
Signed-off-by: Austin Foxley <65462a1d10372f5df6b6641242ca623823c369f3@cetoncorp.com>

skristiansson/uClibc-or1k,mephi42/uClibc,foss-xtensa/uClibc,ndmsystems/uClibc,czankel/xtensa-uclibc,ysat0/uClibc,majek/uclibc-vx32,ysat0/uClibc,brgl/uclibc-ng,kraj/uClibc,ndmsystems/uClibc,wbx-github/uclibc-ng,ndmsystems/uClibc,ffainelli/uClibc,mephi42/uClibc,czankel/xtensa-uclibc,mephi42/uClibc,atgreen/uClibc-moxie,groundwater/uClibc,m-labs/uclibc-lm32,foss-xtensa/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,kraj/uClibc,brgl/uclibc-ng,skristiansson/uClibc-or1k,waweber/uclibc-clang,ysat0/uClibc,hwoarang/uClibc,hjl-tools/uClibc,czankel/xtensa-uclibc,brgl/uclibc-ng,ffainelli/uClibc,kraj/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,hwoarang/uClibc,waweber/uclibc-clang,kraj/uclibc-ng,groundwater/uClibc,mephi42/uClibc,atgreen/uClibc-moxie,ffainelli/uClibc,ffainelli/uClibc,groundwater/uClibc,skristiansson/uClibc-or1k,hjl-tools/uClibc,ndmsystems/uClibc,foss-for-synopsys-dwc-arc-processors/uClibc,brgl/uclibc-ng,waweber/uclibc-clang,ysat0/uClibc,kraj/uclibc-ng,waweber/uclibc-clang,foss-xtensa/uClibc,groundwater/uClibc,majek/uclibc-vx32,ddcc/klee-uclibc-0.9.33.2,m-labs/uclibc-lm32,foss-for-synopsys-dwc-arc-processors/uClibc,ddcc/klee-uclibc-0.9.33.2,skristiansson/uClibc-or1k,atgreen/uClibc-moxie,wbx-github/uclibc-ng,kraj/uclibc-ng,majek/uclibc-vx32,hjl-tools/uClibc,hwoarang/uClibc,majek/uclibc-vx32,hjl-tools/uClibc,hjl-tools/uClibc,ddcc/klee-uclibc-0.9.33.2,hwoarang/uClibc,kraj/uclibc-ng,atgreen/uClibc-moxie,m-labs/uclibc-lm32,wbx-github/uclibc-ng,ddcc/klee-uclibc-0.9.33.2,ffainelli/uClibc,czankel/xtensa-uclibc,kraj/uClibc,m-labs/uclibc-lm32,foss-xtensa/uClibc,groundwater/uClibc,wbx-github/uclibc-ng