Bahrain court upholds jail sentence for rights activist