fix when* documentation

Signed-off-by: Jan Dvořák <mordae@anilinux.org>
added rwlocks

Signed-off-by: Jan Dvořák <mordae@anilinux.org>