Found a 'most likly' bug in function : pico_getsockname
picoLock wasn't released properly... (line 155 added)
printf's deleted (debug)