Removes unnecessary prints
Closes files in test after they have been read
Fixes return value of sys_semaphore_create()

In case of att.addr() being NULL, CELL_EFAULT must be returnd and not
CELL_EINVAL, according to the corresponding ps3autotest.