Clean up poll_shared specs to remove race conditions and make more idiomatic