libc: Implement pthread_attr_setstack()

Implement the pthread_attr_setstack() function, which was surprisingly
missing (the various other stack getting and setting variants were already
implemented).

Signed-off-by: Nadav Har'El <nyh@cloudius-systems.com>
Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>