fix blocking of pumps in multithreaded test
bump up version to 0.3
documentation fixes
fix closing of ALSA pipe
fix possible race condition

The race could happen if the avcodec pipe was released before it has
opened the codec (exclusive access with udeal).
fix potential invalid access

Could happen if the pipe was still blocking sources at the time of termination,
and pipe has buffers to write before dying.