pothos-library: fixed thread safety port update issue