_POSIX_Condition_variables_Wait_support: changed status of lock and unlock to return EINVAL is there is an error