fixed a bug in checking the availability of usocket factories.